<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"> 

	<ui:composition template="/templates/templateOff.xhtml">
			<ui:define name="pageTitle">Esqueci minha senha</ui:define>
			<ui:define name="pageHeader">Defina uma nova senha</ui:define>
			<ui:define name="body"><br />
				<div class="titulo1">Digite seu email para a busca </div>
				<br />
				
				<h:form id="procura" rendered="true">					
					<h:panelGrid columns="2">					
						
							<h:outputLabel value="Email do usuário:" />	
							<h:inputText value="#{novaSenhaUsuarioBean.usuarioSelecionado.email}" validatorMessage="Email inválido" required="true" requiredMessage="Digite o seu email" maxlength="100" size="40">
								<f:validateRegex
		pattern="^[_A-Za-z0-9-\+]+(\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\.[A-Za-z0-9]+)*(\.[A-Za-z]{2,})$" />
							</h:inputText>
							<h:commandButton id="envioNovaSenha" value="Enviar nova senha" action="#{novaSenhaUsuarioBean.novaSenha()}"/>
							<h:commandButton id="voltar" value="Voltar" action="login" immediate="true"/>
																				
					</h:panelGrid>					
				</h:form>
				<h:messages/>
			</ui:define>
	</ui:composition> 
</html>
